<template>
    <div>
        {{ newData }}
        <child @event1="change($event)"></child>
        
    </div>
</template>

<script>
    import child from './child'
    export default {
        data() {
            return {
                newData: '这是父组件的数据'
            }
        },
        methods: {
            change(data) {
                this.newData = data;
            }
        },
        components: {child}
    }
</script>
 
